Optimal. Leaf size=87 \[ \frac{i \tanh ^{-1}\left (\frac{\sqrt{a} \sec (c+d x)}{\sqrt{2} \sqrt{a+i a \tan (c+d x)}}\right )}{2 \sqrt{2} a^{3/2} d}+\frac{i \sec (c+d x)}{2 d (a+i a \tan (c+d x))^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0752919, antiderivative size = 87, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {3502, 3489, 206} \[ \frac{i \tanh ^{-1}\left (\frac{\sqrt{a} \sec (c+d x)}{\sqrt{2} \sqrt{a+i a \tan (c+d x)}}\right )}{2 \sqrt{2} a^{3/2} d}+\frac{i \sec (c+d x)}{2 d (a+i a \tan (c+d x))^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3502
Rule 3489
Rule 206
Rubi steps
\begin{align*} \int \frac{\sec (c+d x)}{(a+i a \tan (c+d x))^{3/2}} \, dx &=\frac{i \sec (c+d x)}{2 d (a+i a \tan (c+d x))^{3/2}}+\frac{\int \frac{\sec (c+d x)}{\sqrt{a+i a \tan (c+d x)}} \, dx}{4 a}\\ &=\frac{i \sec (c+d x)}{2 d (a+i a \tan (c+d x))^{3/2}}+\frac{i \operatorname{Subst}\left (\int \frac{1}{2-a x^2} \, dx,x,\frac{\sec (c+d x)}{\sqrt{a+i a \tan (c+d x)}}\right )}{2 a d}\\ &=\frac{i \tanh ^{-1}\left (\frac{\sqrt{a} \sec (c+d x)}{\sqrt{2} \sqrt{a+i a \tan (c+d x)}}\right )}{2 \sqrt{2} a^{3/2} d}+\frac{i \sec (c+d x)}{2 d (a+i a \tan (c+d x))^{3/2}}\\ \end{align*}
Mathematica [A] time = 0.605281, size = 95, normalized size = 1.09 \[ \frac{\sec (c+d x) \left (2+\frac{2 e^{2 i (c+d x)} \tanh ^{-1}\left (\sqrt{1+e^{2 i (c+d x)}}\right )}{\sqrt{1+e^{2 i (c+d x)}}}\right )}{4 a d (\tan (c+d x)-i) \sqrt{a+i a \tan (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.258, size = 318, normalized size = 3.7 \begin{align*}{\frac{1}{8\,{a}^{2}d} \left ( i\cos \left ( dx+c \right ) \sqrt{2}\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}\arctan \left ({\frac{\sqrt{2} \left ( i\cos \left ( dx+c \right ) -i+\sin \left ( dx+c \right ) \right ) }{2\,\sin \left ( dx+c \right ) }{\frac{1}{\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}}}} \right ) +\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}\arctan \left ({\frac{\sqrt{2} \left ( i\cos \left ( dx+c \right ) -i+\sin \left ( dx+c \right ) \right ) }{2\,\sin \left ( dx+c \right ) }{\frac{1}{\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}}}} \right ) \sqrt{2}\sin \left ( dx+c \right ) +8\,i \left ( \cos \left ( dx+c \right ) \right ) ^{3}+i\sqrt{2}\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}\arctan \left ({\frac{\sqrt{2} \left ( i\cos \left ( dx+c \right ) -i+\sin \left ( dx+c \right ) \right ) }{2\,\sin \left ( dx+c \right ) }{\frac{1}{\sqrt{-2\,{\frac{\cos \left ( dx+c \right ) }{\cos \left ( dx+c \right ) +1}}}}}} \right ) +8\, \left ( \cos \left ( dx+c \right ) \right ) ^{2}\sin \left ( dx+c \right ) -4\,i\cos \left ( dx+c \right ) \right ) \sqrt{{\frac{a \left ( i\sin \left ( dx+c \right ) +\cos \left ( dx+c \right ) \right ) }{\cos \left ( dx+c \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sec \left (d x + c\right )}{{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac{3}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.13831, size = 760, normalized size = 8.74 \begin{align*} \frac{{\left (i \, \sqrt{\frac{1}{2}} a^{2} d \sqrt{\frac{1}{a^{3} d^{2}}} e^{\left (3 i \, d x + 3 i \, c\right )} \log \left ({\left (2 \, \sqrt{\frac{1}{2}} a^{2} d \sqrt{\frac{1}{a^{3} d^{2}}} e^{\left (i \, d x + i \, c\right )} + \sqrt{2} \sqrt{\frac{a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}{\left (e^{\left (2 i \, d x + 2 i \, c\right )} + 1\right )} e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-i \, d x - i \, c\right )}\right ) - i \, \sqrt{\frac{1}{2}} a^{2} d \sqrt{\frac{1}{a^{3} d^{2}}} e^{\left (3 i \, d x + 3 i \, c\right )} \log \left (-{\left (2 \, \sqrt{\frac{1}{2}} a^{2} d \sqrt{\frac{1}{a^{3} d^{2}}} e^{\left (i \, d x + i \, c\right )} - \sqrt{2} \sqrt{\frac{a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}{\left (e^{\left (2 i \, d x + 2 i \, c\right )} + 1\right )} e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-i \, d x - i \, c\right )}\right ) + \sqrt{2} \sqrt{\frac{a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}{\left (i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i\right )} e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-3 i \, d x - 3 i \, c\right )}}{4 \, a^{2} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sec{\left (c + d x \right )}}{\left (a \left (i \tan{\left (c + d x \right )} + 1\right )\right )^{\frac{3}{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sec \left (d x + c\right )}{{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac{3}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]